package com.fulihui.wgj.dal.mybatis.repository;

import com.fulihui.wgj.dal.mybatis.domain.WxMassMsgLog;
import com.fulihui.wgj.dal.mybatis.mapper.WxMassMsgLogMapper;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author wang_wx
 * @date 2018-06-20
 */
@Component
public class WxMassMsgLogRepository extends BaseRepository<WxMassMsgLog> {

    @Resource
    WxMassMsgLogMapper wxMassMsgLogMapper;

    /**
     * 记录发送更新--如成功数、失败数、状态等--累加原来的数字
     *
     * @param wxMassMsgLogUpdate
     * @return
     */
    public Integer updateAccumulate(WxMassMsgLog wxMassMsgLogUpdate) {
        return wxMassMsgLogMapper.updateAccumulate(wxMassMsgLogUpdate);
    }
}
